package com.rz.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.rz.javaSpringBoot.modules.account.entity.Role;
import com.rz.javaSpringBoot.modules.common.entity.Result;
import com.rz.javaSpringBoot.modules.common.entity.SearchBean;

import java.util.List;

/**
 *  Role Service
 */
public interface RoleService {
	
	Result<Role> insertRole(Role role);
	
	Result<Role> updateRole(Role role);
	
	Result<Object> deleteRoelById(int id);
	
	Role getRoleById(int id);
	
	List<Role> getRolesByUserId(int userId);
	
	List<Role> getRoles();
	
	PageInfo<Role> getRolesBySearchBean(SearchBean searchBean);
}
